package jiyici;

import org.json.JSONException;
import org.json.JSONObject;

public class Server2ClientSyncItem {

    private String tableName;

    private long lastmodified;

    public Server2ClientSyncItem(String tableName, long lastmodified) {
        super();
        this.tableName = tableName;
        this.lastmodified = lastmodified;
    }

    public String getTableName() {
        return tableName;
    }

    public long getLastmodified() {
        return lastmodified;
    }

    public JSONObject toJson() throws JSONException {
        JSONObject json = new JSONObject();
        json.put("tableName", tableName);
        json.put("lastmodified", lastmodified);
        return json;
    }

}
